<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
{include file="includeMeta.html"}

<meta name="robots" content="FOLLOW,INDEX">

<meta name="title" content="About Ho Ho - hohobb.com" />
<meta name="keyword" content="Promo Codes,coupon codes,discounts,save off" />

<title>User Admin - hohobb.com</title>

<link rel="stylesheet" type="text/css" href="{$HOME_URL}/css/admin.css" />

<script type="text/javascript" src="{$HOME_URL}/js/tools/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="{$HOME_URL}/js/encode/extends.js"></script>
<script type="text/javascript" src="{$HOME_URL}/js/encode/request.js"></script>
<script language="javascript" src="{$HOME_URL}/js/utils/ValidationUtils.js" type="text/JavaScript"></script>
<script language="JavaScript" src="{$HOME_URL}/js/utils/CalenderUtils.js" type="text/JavaScript"></script>

<SCRIPT language=JavaScript>

function checkForm(){
	if (validUtils.isEmpty("name","Name")){
		return false;
	}else if (validUtils.isEmpty("store", "Store")){
		return false;
	}else{
		return true;
	}
}
</script>
</head>
<body>
	<div class="mainBox">
		{include file="includeTop.html"}
		{include file="includeSearchBox.html"}
		<div class="contentBox">
			<div class="content">
				<div class="listBox">
					<div class="admin">
						<div class="title navTitleFont">
			    			Add Coupon
			    		</div>
			    		
			    		<div class="contentBox">
			    			<form action="addCoupon.php" name="fm" method="post">
			    				{if $message != ''}
			    				<div class="message">
									{$message}
								</div>
								{/if}
								
								<div class="contentTitle">
									Promotion Type: 
								</div>
								<div class="content">
									<select name="promoTypeId" id="promoTypeId" class="promoTypeSelect">{html_options options=$arrPromoType selected=$promoTypeId}</select>
								</div>
																
								<div class="contentTitle">
									Code: 
								</div>
								<div class="content">
									<input class="element" name="code" type="text" id="code" value="{$code}" maxlength="100" />
								</div>								
								
								<div class="contentTitle">
									Name: 
								</div>
								<div class="content">
									<input class="element" name="name" type="text" id="name" value="{$name}" maxlength="200" /><div class="required"><font color="#FF0000">*</font></div>
								</div>
								
								<div class="contentTitle">
									Store : 
								</div>
								<div class="content">
									<input class="element" name="store" type="text" id="store" value="{$store}" maxlength="200" /><div class="required"><font color="#FF0000">*</font></div>
									<div class="storeSample">Sample: www.yourdomain.com</div>
								</div>
								
								<div class="contentTitle">
									Start Date : 
								</div>
								<div class="content">
									<input class="element font11" name="startDate" type="text" id="startDate" value="{$startDate}" maxlength="40" onKeyDown="SelectDate(this,'yyyy-MM-dd')" onFocus="SelectDate(this,'yyyy-MM-dd')" />
								</div>
								
								<div class="contentTitle">
									End Date : 
								</div>
								<div class="content">
									<input class="element font11" name="endDate" type="text" id="endDate" value="{$endDate}" maxlength="40" onKeyDown="SelectDate(this,'yyyy-MM-dd')" onFocus="SelectDate(this,'yyyy-MM-dd')" />
								</div>
								
								<div class="contentTitle">
									Description : 
								</div>
								<div class="content">
									<textarea class="addCouponDesc" name="descript" maxlength=250 rows=8>{$descript}</textarea>
								</div>
								
								<div class="addCouponSubmit">
									<input class="submit" type="submit" name="Submit" value="Submit" onClick="return checkForm();" />
								</div>
							</form>
						</div>
					</div>
				</div>
				
				<div class="nav">
					{include file="includeActionBox.html"}
				</div>
			</div>		
			<div class="clear"></div>
		</div>
		
		{include file="footer.html"}
	</div>
</body>
</html>
